package licode.unisop.types.event;

import licode.unisop.types.dp.UserAuthIn;
import lombok.Getter;

/**
 * 日志领域事件定义
 *
 * @author licode
 */
@Getter
public class LogDomainEvent extends DomainEvent {

    private static final long serialVersionUID = 5683528902451980256L;

    private UserAuthIn tokenInfo;
    private String errorInfo;

    public LogDomainEvent(String data, String eventType) {
        super(LogDomainEvent.class.getTypeName(), data, eventType);
        errorInfo = "";
    }

    public LogDomainEvent(String demandId, String data, String eventType) {
        super(demandId, data, eventType);
        errorInfo = "";
    }

    public void setTokenInfo(UserAuthIn tokenInfo) {
        this.tokenInfo = tokenInfo;
    }

    public void setErrorInfo(String errorInfo) {
        this.errorInfo = errorInfo;
    }
}
